#ifndef DATAMANAGERWIDGET_H
#define DATAMANAGERWIDGET_H

#include "tablemodel.h"
#include "data/gsdata.h"

#include <QDialog>
#include <QTabWidget>
#include <QTableView>
#include <QCloseEvent>
#include <QList>
#include <QDockWidget>
#include <QVBoxLayout>

class DataManagerWidget : public QDockWidget
{
    Q_OBJECT
public:
    explicit DataManagerWidget(QWidget *parent = 0);
    ~DataManagerWidget();

protected:
//    void closeEvent(QCloseEvent *event);

signals:
    void dataManagerClosing();

public slots:
    void addTabView(GSData* varData);
    void closeTabView(int index);
    void deleteTabView(QString name);

private:
    QTabWidget tabWidget;
    QList<QTableView*> tabViewSet;
    QList<TableModel*> tableModelSet;
    QStringList tabName;
};

#endif // DATAMANAGERWIDGET_H
